import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import router from './router/index.js'
import * as echarts from 'echarts';
import { createPinia } from 'pinia'
import "@/assets/less/index.less"
import "@/api/mock.js"
import api from "@/api/api.js"



const app = createApp(App)
const pinia = createPinia()

app.config.globalProperties.$api = api;
app.use(pinia)
app.use(ElementPlus)
app.use(router)
app.mount('#app')

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}


